<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="../../favicon.ico">

    <title>视频信息管理系统</title>
     <!-- Bootstrap core CSS js -->

    <link href="assets/css/bootstrap.min.css" rel="stylesheet">
    <link href="assets/css/play.css" rel="stylesheet">
    <link href="assets/css/offcanvas.css" rel="stylesheet">
    <link href="assets/css/style.css" rel="stylesheet">
    
    <script src="assets/js/jquery.min.js"></script>
    <script src="assets/js/bootstrap.min.js"></script>
    <script src="assets/js/ie-emulation-modes-warning.js"></script>
<!-- 从show页登录成功后取得vid 并跳转到登录模态框--> 
 <script>
 function func(vid){
    document.getElementById("videoid").value=vid;
   document.getElementById("login").modal();
    }
 </script>
 <!-- 从show页登录成功后取得vid 并跳转到登录模态框--> 

<!-- 弹窗显示视频的资源 css和jQ-->
<script>
jQuery(document).ready(function($) {
    $('.theme-login').click(function(){
        $('.theme-popover-mask').fadeIn(100);
        $('.theme-popover').slideDown(200);
    })
    $('.theme-poptit .close').click(function(){
var myVideo=$('#myVideo')[0];
            myVideo.pause();
        $('.theme-popover-mask').fadeOut(100);
        $('.theme-popover').slideUp(200);
                
    })

})
</script>
<!-- 弹窗显示视频的资源 css和jQ end-->
</head>
       
          <!-- **************** -->
      

     <!-- ************* --> 



     

     <!-- ***************** -->








<div class="modal fade" id="changeInfor" abindex="-1" role="dialog" aria-labelledby="myModalLabel">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close" onclick="location.replace('index.php')">
          <span aria-hidden="true">&times;</span>
        </button>
        <h4 class="modal-title" align="center" id="myModalLabel">请输入修改信息</h4>
      </div>
      <div class="modal-body">
        <p>
          <div class="container-fluid">
 <form method="post" action="doChangeInfor.php" enctype="multipart/form-data" class="form-horizontal">
    <input type="hidden" name="id"  value=<?php echo $id;?>>
 <div class="form-group">
    <label for="exampleInputUserName1" class=" control-label col-sm-offset-2 col-md-2 ">姓名：</label>
    <div class=" col-md-4 " >
    <input type="text" name="uname" class="form-control " id="exampleInputUserName1" disabled value=<?php echo $uname; ?>>
    </div>  
  </div>
  <div class="form-group">
    <label class="col-md-2 col-sm-offset-2 control-label" >性别：</label>
    <div class="col-md-4" >
    <label class="radio-inline">
    <input type="radio" name="gender" value="0" <?php  if(!$gender) echo 'checked'; ?>>男
    </label>
    <label class="radio-inline">
    <input type="radio" name="gender" value="1" <?php  if($gender) echo 'checked'; ?>>女
    </label>
    </div>  
  </div>
  <div class="form-group">
    <label for="exampleInputDate1" class="col-md-2 col-sm-offset-2 control-label" >生日：</label>
    <div class="col-md-4" >
    <input type="date" name="birthdate" class="form-control" id="exampleInputDate1" value=<?php echo $birthdate; ?>>
    </div>  
  </div> 
 <div class="form-group">
    <label class="col-md-2 col-sm-offset-2 control-label">爱好：</label>
    <div class="col-md-4">
    <label class="checkbox-inline">
    <input type="checkbox" name="hobby[]" value="旅游" <?php if(strstr($hobby,'旅游')) echo 'checked'; ?>>旅游
    </label>
    <label class="checkbox-inline">
    <input type="checkbox" name="hobby[]" value="登山" <?php if(strstr($hobby,'登山')) echo 'checked'; ?>>登山
    </label>
    <label class="checkbox-inline">
    <input type="checkbox" name="hobby[]" value="健身" <?php if(strstr($hobby,'健身')) echo 'checked'; ?>>健身
    </label>
    <label class="checkbox-inline">
    <input type="checkbox" name="hobby[]" value="上网" <?php if(strstr($hobby,'上网')) echo 'checked'; ?>>上网
    </label>
    <label class="checkbox-inline">
    <input type="checkbox" name="hobby[]" value="游泳" <?php if(strstr($hobby,'游泳')) echo 'checked'; ?>>游泳
    </label>
    </div>  
  </div> 
  <div class="form-group">
    <label class="col-md-2 col-sm-offset-2 control-label" >学历：</label>
    <div class="col-md-4" >
    <select class="form-control" name="degree">
    <option value="0" >请选择</option>
    <option value="1" <?php if ($degree=='1')  echo 'selected'; ?>>高中</option>
    <option value="2" <?php if ($degree=='2')  echo 'selected'; ?>>大学</option>
    <option value="3" <?php if ($degree=='3')  echo 'selected'; ?>>研究生</option>
    <option value="4" <?php if ($degree=='4')  echo 'selected'; ?>>博士生</option>
    </select>
    </div>  
  </div>
  <div class="form-group">
    <label for="exampleInputTextarea1" class="col-md-2 col-sm-offset-2 control-label">自我介绍：</label>
    <div class="col-md-4" >
    <textarea class="form-control" id="exampleInputTextarea1" name="intro" cols="40" rows="5"><?php echo $intro; ?></textarea>
    </div>  
  </div>
  <div class="form-group">
    <label for="exampleInputFile" class="col-md-2 col-sm-offset-2 control-label">头像：</label>
    <div class="col-md-4" >
    <input type="file" name="pic" id="exampleInputFile">原头像：<img src="./images/<?php  echo $pic; ?>" width="80px" height="80px" class="img-circle">
    </div>  
  </div>
  <div class="form-group">
    <div class="col-sm-offset-7 col-sm-4" >
    <input type="submit" class="btn btn-success" value="更新">
    </div>  
  </div>
</form>
</div>
          <br>
        </p>
      </div>
      <!-- .. -->
    </div>
  </div>
</div>




 <div class="modal fade" id="changePassword" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
     <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close" onclick="location.replace('index.php')">
          <span aria-hidden="true">&times;</span>
        </button>
        <h4 class="modal-title" align="center" id="myModalLabel">修改个人密码</h4>
      </div> 
      <div class="modal-body">
        <p>
          <!-- ************* -->
       <div class="container-fluid">
 <form  method="post" action="doChangePassword.php" enctype="multipart/form-data" class="form-horizontal" onsubmit="return check()"> 
<div class="form-group">
    <label for="exampleInputPassword1" class=" control-label col-sm-offset-1 col-md-3 " >原密码</label>
    <div class="col-md-5" >
    <input type="password" name="password0" class="form-control" id="exampleInputPassword1" placeholder="123456" required>
    </div>  
  </div>
  <br/>
  <div class="form-group">
    <label for="exampleInputPassword2" class=" control-label  col-sm-offset-1 col-md-3 " >新密码</label>
    <div class="col-md-5" >
    <input type="password" name="password1" class="form-control" id="exampleInputPassword2" placeholder="123456" required>
    </div>  
  </div>
   <br/>
  <div class="form-group">
    <label for="exampleInputPassword3" class=" control-label col-sm-offset-1 col-md-3 " >确认新密码</label>
    <div class="col-md-5" >
    <input type="password" name="password2" class="form-control" id="exampleInputPassword3" placeholder="123456" required>
    </div>  
  </div>
  <div class="form-group">
    <div class="col-md-offset-6 col-sm-3" >
    <input type="reset" class="btn btn-success" value="重置">
    <input type="submit" class="btn btn-success" value="修改"> 
    </div>  
  </div>

  
    <?php 
    if (isset($_GET["msg3"]))
    echo '<h3 align="center" style="color:red;">'.$_GET["msg3"]."</h3>";
    ?>
    <?php 
    if (isset($_GET["msg4"]))
    echo '<h3 align="center" style="color:red;">'.$_GET["msg4"]."</h3>";
    ?>
    <?php 
    if (isset($_GET["msg"]))
    echo '<h3 align="center" style="color:red;">'.$_GET["msg5"]."</h3>";
    ?>
  </form>
  </div>
          <!-- **************** -->
        </p>
      </div>
    </div>
  </div>
</div>

<div class="modal fade" id="login" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close" >
          <span aria-hidden="true">&times;</span>
        </button>
        <h4 class="modal-title" align="center" id="myModalLabel">请输入登录信息</h4>
      </div>
      <div class="modal-body">
        <p>
          <!-- ************* -->
                <form name="fm" action="doLogin.php" method="post" enctype="multipart/form-data" class="form-horizontal"  onsubmit="return check()">
                <input type="hidden" name="vid" id="videoid" >
                <div class="form-group">
                  <label for="exampleInputUserName2" class=" control-label col-sm-offset-2 col-md-2 ">用户名</label>
                  <div class=" col-md-6" >
                    <input type="text" name="username" class="form-control" id="exampleInputUserName2" placeholder="张三" required></div>
                </div>
              
                <div class="form-group">
                  <label for="exampleInputPassword2" class=" control-label col-sm-offset-2 col-md-2 " >密码</label>
                  <div class="col-md-6" >
                    <input type="password" name="password" class="form-control" id="exampleInputPassword2" placeholder="123456" required>
                  </div>
                </div>
                <div class="col-sm-offset-8 col-xs-4" >
                  <input type="reset" class="btn btn-success" value="重置">                
                  <input type="submit" class="btn btn-success" value="登录">
                </div>
                <?php 
                
                if (isset($_GET["msg"]))
                  echo '<h3 align="center" style="color:red;">'.$_GET["msg"]."</h3>";
                 ?>
                 <?php 
                if (isset($_GET["msg9"]))
                  echo '<h3 align="center" style="color:red;">'.$_GET["msg9"]."</h3>";
                 ?>
                </form>
                <br>

          <!-- **************** -->
        </p>
      </div>
    </div>
  </div>
</div>


<div class="modal fade" id="reg" abindex="-1" role="dialog" aria-labelledby="myModalLabel">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close" onclick="location.replace('index.php')">
          <span aria-hidden="true">&times;</span>
        </button>
        <h4 class="modal-title" align="center" id="myModalLabel">请输入注册信息</h4>
      </div>
      <div class="modal-body">
        <p>
          <div class="container-fluid">
            <form  method=post action="doUserReg.php" enctype="multipart/form-data" class="form-horizontal"   onsubmit="return check()">
              <div class="form-group">
                <label for="exampleInputUserName1" class=" control-label col-sm-offset-1 col-md-3 ">姓名：</label>
                <div class=" col-md-6" >
                  <input type="text" name="username" class="form-control" id="exampleInputUserName1" placeholder="张三" required></div>
              </div>
              <div class="form-group">
                <label for="exampleInputPassword1" class=" control-label col-sm-offset-1 col-md-3 " >密码：</label>
                <div class="col-md-6" >
                  <input type="password" name="password" class="form-control" id="exampleInputPassword1" placeholder="123456" required></div>
              </div>
              <div class="form-group">
                <label class="col-md-3 col-sm-offset-1 control-label" >性别：</label>
                <div class="col-md-6" >
                  <label class="radio-inline">
                    <input type="radio" name="gender" value="0">男</label>
                  <label class="radio-inline">
                    <input type="radio" name="gender" value="1">女</label>
                </div>
              </div>
              <div class="form-group">
                <label for="exampleInputDate1" class="col-md-3 col-sm-offset-1 control-label" >生日：</label>
                <div class="col-md-6" >
                  <input type="date" name="birthdate" class="form-control" id="exampleInputDate1" required></div>
              </div>
              <div class="form-group">
                <label class="col-md-3 col-sm-offset-1 control-label">爱好：</label>
                <div class="col-md-6">
                  <label class="checkbox-inline">
                    <input type="checkbox" name="hobby[]" value="旅游">旅游</label>
                  <label class="checkbox-inline">
                    <input type="checkbox" name="hobby[]" value="登山">登山</label>
                  <label class="checkbox-inline">
                    <input type="checkbox" name="hobby[]" value="健身">健身</label>
                  <label class="checkbox-inline">
                    <input type="checkbox" name="hobby[]" value="上网">上网</label>
                  <label class="checkbox-inline">
                    <input type="checkbox" name="hobby[]" value="游泳">游泳</label>
                </div>
              </div>
              <div class="form-group">
                <label class="col-md-3 col-sm-offset-1 control-label" >学历：</label>
                <div class="col-md-4" >
                  <select class="form-control" name="degree">
                    <option value="0">请选择</option>
                    <option value="1">高中</option>
                    <option value="2">大学</option>
                    <option value="3">研究生</option>
                    <option value="4">博士生</option>
                  </select>
                </div>
              </div>
              <div class="form-group">
                <label for="exampleInputTextarea1" class="col-md-3 col-sm-offset-1 control-label">自我介绍：</label>
                <div class="col-md-6" >
                  <textarea class="form-control" rows="3" id="exampleInputTextarea1" placeholder="自我介绍" name="intro"></textarea>
                </div>
              </div>
              <div class="form-group">
                <label for="exampleInputFile" class="col-md-3 col-sm-offset-1 control-label">头像：</label>
                <div class="col-md-6" >
                  <input type="file" name="pic" id="exampleInputFile" required></div>
              </div>
              <div class="form-group">
                <div class="col-sm-offset-8 col-sm-4" >
          <input type="reset" class="btn btn-success"  value="重置">
          <input type="submit" class="btn btn-success"  value="提交"> 
        </div>
              </div>
            </form>
          </div>
          <br>
        </p>
      </div>
      <!-- .. -->
    </div>
  </div>
</div>